# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-plum-py
_pkgname=${pkgname#python-}
pkgver=0.8.7
pkgrel=3
pkgdesc='Pack/Unpack Memory.'
arch=('any')
url='https://pypi.org/project/plum-py/'
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools'
             'python-wheel')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e290de63c1cc274da0565b5b7724b3a15fbd573aa666b5c4b029e122cb5178327fab7564725597aad330b994ebd11687ea7ea383960897df5491862a4880f096')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

